import request from '@/utils/request'
// 获取部门列表
export const getDepartment = () => request.get('/company/department')
// 获取部门负责人名单
export const getDepartmentManager = () => request.get('/sys/user/simple')
// 新增部门
export const addDepartment = data => request.post('/company/department', data)

// 删除
export const delDepartment = id => request.delete(`/company/department/${id}`)

// 编辑回显
export const editDepartment = id => request.get(`/company/department/${id}`)

// 编辑点击确认
export const editDepartmentData = data => request.put(`/company/department/${data.id}`, data)
